package com.bianmaba.oauth2.authorizationcode;

import com.bianmaba.spring.supports.mvc.annotations.EnableJpaRepositoriesExtension;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.authentication.encoding.Md5PasswordEncoder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;

@SpringBootApplication
@EnableJpaRepositoriesExtension

@EnableAuthorizationServer
public class DbServerApplication {

    public static void main(String[] args) {
        System.out.println(new Md5PasswordEncoder().encodePassword("admin", null));
        SpringApplication.run(DbServerApplication.class, args);
    }

}
